{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/builder/css/base.css" media="all">
<style>
    .layui-form-item {
        margin-bottom: 15px !important;
        clear: both;
        *zoom: 1;
    }
    .builderSubmit{
        margin: 0 auto;
        display: block;
    }
</style>

<body>
    <div class="layui-fluid layui-anim layui-anim-downbit">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 15px;">
                <form action="{:url('save')}" class="layui-form  v3-admin-form" id="form">
                    <div class="layui-row">
                        <input type="hidden" name="id" value="{$info.id}" />
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">申请ID</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.id}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">会员编号</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.user.code}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商家名称</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.title}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商家联系人</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.contacts}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商家电话</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.contacts_tel}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商家LOGO</label>
                                <div class="layui-input-block">
                                    <?php $data = isset($info)?$info:[];?>
                                    {table:alone view='items/imgshow' info='$data' form='["field" =>
                                    "logo","title"=>"商家LOGO"]'/}
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商家图片</label>
                                <div class="layui-input-block">
                                    <?php $data = isset($info)?$info:[];?>
                                    {table:alone view='items/imgshow' info='$data' form='["field" =>
                                    "banner","title"=>"商家图片"]'/}
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商家营业执照</label>
                                <div class="layui-input-block">
                                    <?php $data = isset($info)?$info:[];?>
                                    {table:alone view='items/imgshow' info='$data' form='["field" =>
                                    "business","title"=>"商家营业执照"]'/}
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">申请时间</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.create_time}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        {if $info->getData('status') == 1}
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">审核</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="status" value="2" title="通过">
                                    <input type="radio" name="status" value="3" title="驳回">
                                </div>
                            </div>
                        </div>
                        {else}
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">状态</label>
                                <div class="layui-input-block">
                                    <input type="text"
                                        value="{if $info->getData('status') == 2}已通过{elseif $info->getData('status') == 3}已驳回{else}待审核{/if}"
                                        class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        {/if}
                        {if $info->getData('status') != 2}
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">驳回原因</label>
                                <div class="layui-input-block">
                                    <input type="text" name="reject_msg" value="{$info.reject_msg?:''}"
                                        placeholder="如要驳回请输入驳回原因" class="layui-input" />
                                </div>
                            </div>
                        </div>
                        {/if}
                        {if $info->getData('status') != 1}
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">处理时间</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.confirm_time?:''}" class="layui-input" disabled />
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">处理人</label>
                                <div class="layui-input-block">
                                    <input type="text" value="{$info.admin_name?:''}" class="layui-input" disabled />
                                </div>

                            </div>
                        </div>
                        {/if}
                    </div>
                </form>
            </div>
        </div>
    </div>
    {if $info->getData('status') == 1}
    {include file="public/submit" /}
    {/if}
</body>
{include file="public/footer" /}

</html>